package org.fast.develop.logicflow;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * @author Moyin Date : 2019/5/12 0012
 */
@SpringBootApplication
@Slf4j
public class LogicApplication implements ServletContextInitializer {
    public static void main(String[] args) {
        SpringApplication.run(LogicApplication.class,args);

        log.info("访问地址：http://localhost:8080/logic/doc.html");
    }

    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        servletContext.setInitParameter("org.apache.tomcat.websocket.textBufferSize", Integer.toString((1024 * 1024)));
    }
}
